import request from '@/utils/request'
export const contractProductionPlan = {
  getList: data => {
    return request({
      url: `/contractProductionPlan/findAll`,
      method: 'post',
      data
    })
  },
  batchDel: data => {
    return request({
      url: `/contractProductionPlan/deleteBatch`,
      method: 'delete',
      data
    })
  },
  save: data => {
    return request({
      url: `/contractProductionPlan/add`,
      method: 'post',
      data
    })
  },
  update: data => {
    return request({
      url: `/contractProductionPlan/update/${data.id}`,
      method: 'put',
      data
    })
  },
  getDetail: id => {
    return request({
      url: `/contractProductionPlan/findById`,
      method: 'get',
      params: { id: id }
    })
  }
}
export const tubeBlankPlan = {
  getList: data => {
    return request({
      url: `/tubeBilletProductionPlan/findAll`,
      method: 'post',
      data
    })
  },
  batchDel: data => {
    return request({
      url: `/tubeBilletProductionPlan/deleteBatch`,
      method: 'delete',
      data
    })
  },
  save: data => {
    return request({
      url: `/tubeBilletProductionPlan/add`,
      method: 'post',
      data
    })
  },
  update: data => {
    return request({
      url: `/tubeBilletProductionPlan/update/${data.id}`,
      method: 'put',
      data
    })
  },
  getDetail: id => {
    return request({
      url: `/tubeBilletProductionPlan/findById`,
      method: 'get',
      params: { id: id }
    })
  }
}
